<template>
	<view class="box">
		<view class="box_next" v-for="(item,index) in tabBarArr" :key="index"
			@click="tabtap(index)">
			<view :class="{'bor-bottom-black': tabIndex==index}">
				<view style="padding: 20rpx;">
					<text class="" :class="tabIndex==index ? 'act_text_z' : 'act_text_h'">{{item.name}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			tabBarArr: Array,
			tabIndex: Number,
			
			pClass:{
				type:String,
				default:'pa-20'
			},
		},
		methods: {
			tabtap(index) {
				this.$emit('tabtap', index);
			},
		}
	}
</script>

<style scoped>
	.box{
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
		background-color: #ffffff;
	}
	.box_next{
		/* #ifndef APP-NVUE */
		display: flex;
		/* #endif */
		flex-direction: row;
		justify-content: center;
		align-items: center;
		padding: 0 20rpx;
	}
	
	.bor-bottom-black {
		border-bottom: 6rpx solid #000000;
	}
	
	.act_text_z{
		font-weight: bold;
		font-size: 33rpx
	}
	
	.act_text_h{
		color: #333333;
		font-size: 30rpx
	}
	
</style>
